import time

# 方法1
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

wd = webdriver.Chrome(service=Service(f".\chromedriver_win136.exe"))
wd.get("https://www.imdb.com")
wd.implicitly_wait(10)
# find_elements
elements = wd.find_elements(By.CLASS_NAME, "ipc-title__text")
for ele in elements:
    print(ele.get_attribute("innerHTML"))

# find_element
element = wd.find_element(By.CLASS_NAME, "ipc-title__text")
print(element.get_attribute("innerHTML"))
